<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% String path = request.getContextPath();%>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0">

		<title>我的收藏</title>

		<link href="<%=path%>/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css">
		<link href="<%=path%>/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css">

		<link href="<%=path%>/css/personal.css" rel="stylesheet" type="text/css">
		<link href="<%=path%>/css/colstyle.css" rel="stylesheet" type="text/css">

	</head>

	<body>
		<!--头 -->
		<jsp:include page="../header.jsp"></jsp:include>
            <div class="nav-table">
					   <div class="long-title"><span class="all-goods">全部分类</span></div>
					   <div class="nav-cont">
							<ul>
								<li class="index"><a href="#">首页</a></li>
                                <li class="qc"><a href="#">闪购</a></li>
                                <li class="qc"><a href="#">限时抢</a></li>
                                <li class="qc"><a href="#">团购</a></li>
                                <li class="qc last"><a href="#">大包装</a></li>
							</ul>
						    <div class="nav-extra">
						    	<i class="am-icon-user-secret am-icon-md nav-user"></i><b></b>我的福利
						    	<i class="am-icon-angle-right" style="padding-left: 10px;"></i>
						    </div>
						</div>
			</div>
			<b class="line"></b>
		<div class="center">
			<div class="col-main">
				<div class="main-wrap">

					<div class="user-collection">
						<!--标题 -->
						<div class="am-cf am-padding">
							<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">我的收藏</strong> / <small>My&nbsp;Collection</small></div>
						</div>
						<hr/>

						<div class="you-like">
							<div class="s-bar">
								我的收藏
								<a class="am-badge am-badge-danger am-round">降价</a>
								<a class="am-badge am-badge-danger am-round">下架</a>
							</div>
							<div class="s-content">
								<c:forEach items="${favoritesList}" var="like">
									<c:forEach items="${goodsList}" var="goods">
										<c:if test="${like.goodsId==goods.goodsId}">
											<div class="s-item-wrap">
												<div class="s-item">
													<div class="s-pic">
														<a href="info?id=${goods.goodsId}" class="s-pic-link">
															<img src="${goods.goodsThums}" alt="${goods.goodsName}" title="${goods.goodsName}" class="s-pic-img s-guess-item-img">
														</a>
													</div>
													<div class="s-info">
														<div class="s-title"><a href="#" title="${goods.goodsName}">${goods.goodsName}</a></div>
														<div class="s-price-box">
															<span class="s-price"><em class="s-price-sign">¥</em><em class="s-value">${goods.marketPrice}</em></span>
															<span class="s-history-price"><em class="s-price-sign">¥</em><em class="s-value">${goods.shopPrice}</em></span>
														</div>
														<div class="s-extra-box">
																<%--														<span class="s-comment">好评: 98.03%</span>--%>
															<span class="s-sales">销量: ${goods.saleCount}</span>
														</div>
													</div>
													<div class="s-tp">
														<span class="ui-btn-loading-before"><a href="<%=path%>/car?id=${goods.goodsId}&count=1" style="color: white">加入购物车</a></span>
														<i class="am-icon-shopping-cart"></i>
														<span class="ui-btn-loading-before buy"><a style="color: white" href="<%=path%>/like?type=del&goodsId=${goods.goodsId}">取消收藏</a></span>
													</div>
												</div>
											</div>
										</c:if>
									</c:forEach>
								</c:forEach>
							</div>
							<div class="s-more-btn i-load-more-item" data-screen="0"><i class="am-icon-refresh am-icon-fw"></i>更多</div>
						</div>
					</div>

				</div>
				<!--底部-->
				<jsp:include page="../foot.jsp"></jsp:include>
			</div>
			<jsp:include page="menu.jsp"></jsp:include>
		</div>

	</body>

</html>